3
https://raw.githubusercontent.com/mqxu/spring-boot-review/master/spring-boot-config/src/main/java/com/soft1851/springboot/config/model/Music.java
package com.soft1851.springboot.config.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author: mq_xu
 * @date: 2020/5/12
 * @description:
 */
@Data
@Component
@ConfigurationProperties(prefix = "music")
public class Music {
    /**
     * 歌名
     */
    private String name;
    /**
     * 歌手
     */
    private String artist;
    /**
     * 播放量
     */
    private Integer playCount;
    /**
     * 描述
     */
    private String description;
    /**
     * 评论列表
     */
    private List<String> comments;
    /**
     * 每月排名
     */
    private Map<String, Integer> rank;
}
